#!usr/bin/env python
#coding=utf8

import os

DEBUG = False   #True

PRJ_DIR = os.path.dirname(os.path.realpath(__file__))
PROJECT_PATH = PRJ_DIR           # 工程根目录
PROJECT_NAME = os.path.split(PROJECT_PATH)[1]

STATIC_PATH = os.path.join(PROJECT_PATH, 'static') # 静态文件根目录
HTML_PATH = os.path.join(STATIC_PATH, 'html') # 生成的HTML静态文件存放目录

THEME = 'jindong'


PAGE_SIZE = 30

# 异常日志目录, linux: 记录在 $HOME/logs/web 下
if os.name == 'nt':
    ERROR_LOG_PATH = 'c:/tmp/logs/web'
else:
    ERROR_LOG_PATH = os.path.join(os.environ['HOME'], 'logs', 'web')
if not os.path.exists(ERROR_LOG_PATH):
    os.makedirs(ERROR_LOG_PATH)
ERROR_LOG_PATH = os.path.join(ERROR_LOG_PATH, 'errors.log')

HOME_URL = u'http://www.bodianying.com'